#ifndef SERIALPORTSET_H
#define SERIALPORTSET_H

#include <QMainWindow>
#include"modbusmanger.h"
#include<QMessageBox>
namespace Ui {
class SerialPortSet;
}

class SerialPortSet : public QMainWindow
{
    Q_OBJECT

public:
    explicit SerialPortSet(QWidget *parent = nullptr);
    ~SerialPortSet();
 static SerialPortSet* instance();

private slots:
 void on_pushButtonConfirm_clicked();

 void on_pushButtonCancel_clicked();
 void setSerialPortBolockData();
 signals:
 void sendModsimSerialPortBlockData(int index);
 void sendMainSwitchEnabel(bool ok);

private:
    Ui::SerialPortSet *ui;
};

#endif // SERIALPORTSET_H
